<%@ page contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="action" scope="request"
	class="swd.work.dataview_wizard.Action" />
<jsp:useBean id="view" scope="request"
	class="swd.work.dataview_wizard.View" />
<jsp:setProperty name="view" property="*" />
<%if (action.action(pageContext).equals("login")){return;} %>

<html>
<head>
<title><%=view.getPrgTitle()%></title>
<LINK HREF="/SWD/workflow.css" REL="STYLESHEET" TYPE="TEXT/CSS">
</head>
<body bgcolor="#ffffff" onLoad="<%=view.getOnloadScript()%>">
<TABLE BORDER="0" HEIGHT="20" CELLPADDING="0" CELLSPACING="0">
	<TR>
		<TD BACKGROUND="pub_images/title/title_bg.gif">
		<DIV ALIGN="LEFT"><IMG SRC="pub_images/title/title01.gif"
			WIDTH="18" HEIGHT="24" HSPACE="0" alt="" /><IMG
			SRC="pub_images/glass.gif" WIDTH="12" HEIGHT="8" alt="" /></DIV>
		</TD>
		<TD ALIGN="LEFT" HEIGHT="20" VALIGN="MIDDLE"
			BACKGROUND="pub_images/title/title_bg.gif" CLASS="TITLE"><%=view.getPrgTitle()%></TD>
		<TD BACKGROUND="pub_images/title/title_bg.gif">
		<DIV ALIGN="RIGHT"><IMG SRC="pub_images/title/glass.gif"
			WIDTH="12" HEIGHT="8" alt="" /><IMG
			SRC="pub_images/title/title02.gif" WIDTH="18" HEIGHT="24" HSPACE="0"
			alt="" /></DIV>
		</TD>
	</TR>
</TABLE>
<br />
<form action="<%=request.getRequestURI() %>" method="POST">
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="0">
	<TR>
		<TD style=""><INPUT TYPE="BUTTON"
			VALUE="<%=view.getBtnAddTitle()%>" CLASS="button"
			ONCLICK="javascript:document.all.item('prgAction').value='add';document.forms[0].submit();" /></TD>
		<!--<TD style="DISPLAY='<%=view.getBtnSaveShow()%>'"><INPUT TYPE="BUTTON" VALUE="<%=view.getBtnSaveTitle()%>" CLASS="button" ONCLICK="javascript:document.all.item('prgAction').value='save';document.forms[0].submit();"/></TD>
<TD style="DISPLAY='<%=view.getBtnQueryShow()%>'"><INPUT TYPE="BUTTON" VALUE="<%=view.getBtnQueryTitle()%>" CLASS="button" ONCLICK="javascript:document.all.item('prgAction').value='query';document.forms[0].submit();"/></TD>
<TD style="DISPLAY='<%=view.getBtnModifyShow()%>'"><INPUT TYPE="BUTTON" VALUE="<%=view.getBtnModifyTitle()%>" CLASS="button" ONCLICK="javascript:document.all.item('prgAction').value='modify';document.forms[0].submit();"/></TD>
<TD style="DISPLAY='<%=view.getBtnApproveShow()%>'"><INPUT TYPE="BUTTON" VALUE="<%=view.getBtnApproveTitle()%>" CLASS="button" ONCLICK="javascript:document.all.item('prgAction').value='approve';document.forms[0].submit();"/></TD>
<TD style="DISPLAY='<%=view.getBtnRejectShow()%>'"><INPUT TYPE="BUTTON" VALUE="<%=view.getBtnRejectTitle()%>" CLASS="button" ONCLICK="javascript:document.all.item('prgAction').value='reject';document.forms[0].submit();"/></TD>
<TD style="DISPLAY='<%=view.getBtnDraftShow()%>'"><INPUT TYPE="BUTTON" VALUE="<%=view.getBtnDraftTitle()%>" CLASS="button" ONCLICK="javascript:document.all.item('prgAction').value='draft';document.forms[0].submit();"/></TD>
<TD style="DISPLAY='<%=view.getBtnCancelShow()%>'"><INPUT TYPE="BUTTON" VALUE="<%=view.getBtnCancelTitle()%>" CLASS="button" ONCLICK="javascript:document.all.item('prgAction').value='cancel';document.forms[0].submit();"/></TD>
<TD style="DISPLAY='<%=view.getBtnExitShow()%>'"><INPUT TYPE="BUTTON" VALUE="<%=view.getBtnExitTitle()%>" CLASS="button" ONCLICK="javascript:document.all.item('prgAction').value='exit';document.forms[0].submit();"/></TD>
-->
	</TR>
</TABLE>
<TABLE BORDER="0" WIDTH="540px" CELLSPACING="1" CELLPADDING="0">
	<TR>
		<TD WIDTH="69">
		<DIV ALIGN="LEFT"><IMG SRC="/pub_images/title02_bg1.gif"
			WIDTH="69" HEIGHT="11" alt=""></DIV>
		</TD>
		<TD VALIGN="MIDDLE" CLASS="TITLE"><%=view.getFrm1Name()%></TD>
		<TD WIDTH="69">
		<DIV ALIGN="RIGHT"><IMG SRC="pub_images/title/title2_bg2.gif"
			WIDTH="69" HEIGHT="11" alt=""></DIV>
		</TD>
	</TR>
</TABLE>
<BR />
<table border="0" width="540px" cellspacing="1" cellpadding="0">
	<tr>
		<td nowrap width="%" class="td_head"><%=view.getprg_noTitle()%></td>
		<td width="%" colspan="5" class="td_content"><input type="TEXT"
			name="prg_no" size="20"
			value="<%=(view.getprg_no()!=null ? view.getprg_no() : "")%>"
			<%=view.getprg_no_readonly() ? "readonly" : ""%>
			class="<%=(view.getprg_no_readonly() ? "input_noborder" : "input")%>" />
		</td>
	</tr>
	<tr>
		<td nowrap class="td_head"><%=view.getdb_aliasTitle()%></td>
		<td colspan="5" class="td_content"><select name="db_alias"
			class="select">
			<%=view.getdb_alias_option()%>
		</select></td>
	</tr>
	<tr>
		<td nowrap width="%" class="td_head"><%=view.getfields_listTitle()%></td>
		<td width="%" colspan="5" class="td_content"><textarea
			cols="100" rows="5" name="fields_list"><%=(view.getfields_list()!=null ? view.getfields_list() : "")%></textarea>
		</td>
	</tr>
	<tr>
		<td nowrap width="%" class="td_head"><%=view.gettables_listTitle()%></td>
		<td width="%" colspan="5" class="td_content"><textarea
			cols="100" rows="5" name="tables_list"><%=(view.gettables_list()!=null ? view.gettables_list() : "")%></textarea>
		</td>
	</tr>
	<tr>
		<td nowrap class="td_head"><%=view.getsql_conditionTitle()%></td>
		<td class="td_content" colspan="5"><textarea cols="100" rows="5"
			name="sql_condition"><%=(view.getsql_condition()!=null ? view.getsql_condition() : "")%></textarea></td>
	</tr>
	<tr>
		<td nowrap width="%" class="td_head"><%=view.getorderby_fieldsTitle()%></td>
		<td width="%" class="td_content" colspan="5"><textarea
			cols="100" rows="5" name="orderby_fields"><%=(view.getorderby_fields()!=null ? view.getorderby_fields() : "")%></textarea>
		</td>
	</tr>
	<tr>
		<td nowrap width="%" class="td_head"><%=view.getgroupby_fieldsTitle()%></td>
		<td width="%" class="td_content" colspan="5"><textarea
			cols="100" rows="5" name="groupby_fields"><%=(view.getgroupby_fields()!=null ? view.getgroupby_fields() : "")%></textarea>
		</td>
	</tr>
	<tr>
		<td nowrap class="td_head"><%=view.gethaving_conditionTitle()%></td>
		<td class="td_content" colspan="5"><textarea cols="100" rows="5"
			name="having_condition"><%=(view.gethaving_condition()!=null ? view.gethaving_condition() : "")%></textarea></td>
	</tr>
	<!--tr>
    <td nowrap width="%" class="td_head"><%=view.getshow_jump_page_buttonTitle()%></td>
    <td width="%" class="td_content" ><input type="CHECKBOX" name="show_jump_page_button" value="Y" class="checkbox" <%if(view.getshow_jump_page_button()!=null){out.print((view.getshow_jump_page_button().equals("Y") ? "checked" : ""));}%>/></td>
    <td nowrap width="%" class="td_head"><%=view.getshow_button_on_topTitle()%></td>
    <td width="%" class="td_content" ><input type="CHECKBOX" name="show_button_on_top" value="Y" class="checkbox" <%if(view.getshow_button_on_top()!=null){out.print((view.getshow_button_on_top().equals("Y") ? "checked" : ""));}%>/></td>
    <td nowrap width="%" class="td_head"><%=view.getenable_order_byTitle()%></td>
    <td width="%" class="td_content" ><input type="CHECKBOX" name="enable_order_by" value="Y" class="checkbox" <%if(view.getenable_order_by()!=null){out.print((view.getenable_order_by().equals("Y") ? "checked" : ""));}%>/></td>
  </tr>
  <tr>
    <td nowrap width="%" class="td_head"><%=view.getshow_button_on_buttomTitle()%></td>
    <td width="%" class="td_content" ><input type="CHECKBOX" name="show_button_on_buttom" value="Y" class="checkbox" <%if(view.getshow_button_on_buttom()!=null){out.print((view.getshow_button_on_buttom().equals("Y") ? "checked" : ""));}%>/></td>
    <td nowrap width="%" class="td_head"><%=view.getshow_filterTitle()%></td>
    <td width="%" class="td_content" ><input type="CHECKBOX" name="show_filter" value="Y" class="checkbox" <%if(view.getshow_filter()!=null){out.print((view.getshow_filter().equals("Y") ? "checked" : ""));}%>/></td>
    <td nowrap class="td_head"><%=view.getshow_addnew_buttonTitle()%></td>
    <td class="td_content" ><input type="CHECKBOX" name="show_addnew_button2" value="Y" class="checkbox" <%if(view.getshow_addnew_button()!=null){out.print((view.getshow_addnew_button().equals("Y") ? "checked" : ""));}%>/></td>
  </tr>
  <tr>
    <td nowrap width="%" class="td_head"><%=view.getshow_jump_pageTitle()%></td>
    <td width="%" class="td_content" ><input type="CHECKBOX" name="show_jump_page" value="Y" class="checkbox" <%if(view.getshow_jump_page()!=null){out.print((view.getshow_jump_page().equals("Y") ? "checked" : ""));}%>/></td>
    <td nowrap width="%" class="td_head"><%=view.getshow_rows_infoTitle()%></td>
    <td width="%" class="td_content" ><input type="CHECKBOX" name="show_rows_info" value="Y" class="checkbox" <%if(view.getshow_rows_info()!=null){out.print((view.getshow_rows_info().equals("Y") ? "checked" : ""));}%>/></td>
    <td nowrap class="td_head"><%=view.getshow_header_when_nodataTitle()%></td>
    <td class="td_content" ><input type="CHECKBOX" name="show_header_when_nodata" value="Y" class="checkbox" <%if(view.getshow_header_when_nodata()!=null){out.print((view.getshow_header_when_nodata().equals("Y") ? "checked" : ""));}%>/></td>
  </tr>
  <tr>
    <td nowrap width="%" class="td_head"><%=view.getshow_rows_of_pageTitle()%></td>
    <td width="%" class="td_content" ><input type="CHECKBOX" name="show_rows_of_page" value="Y" class="checkbox" <%if(view.getshow_rows_of_page()!=null){out.print((view.getshow_rows_of_page().equals("Y") ? "checked" : ""));}%>/></td>
    <td nowrap width="%" class="td_head"><%=view.getshow_excel_buttonTitle()%></td>
    <td width="%" class="td_content"  ><input type="CHECKBOX" name="show_excel_button" value="Y" class="checkbox" <%if(view.getshow_excel_button()!=null){out.print((view.getshow_excel_button().equals("Y") ? "checked" : ""));}%>/></td>
    <td nowrap width="%" class="td_head"><%=view.getrow_of_pageTitle()%></td>
    <td width="%" class="td_content"  ><input type="text" name="row_of_page" size="3" VALUE="<%=(view.getrow_of_page()!=null ? view.getrow_of_page() : "")%>" <%=view.getrow_of_page_readonly() ? "readonly" : ""%> CLASS="<%=(view.getrow_of_page_readonly() ? "input_noborder" : "input")%>"/></td>
  </tr>
  <tr>
    <td nowrap width="%" class="td_head"><%=view.getorderby_last_field_seqTitle()%></td>
    <td width="%" class="td_content" colspan="4">
      <select name="orderby_last_field_seqno">
      <option value=""><option />
      <option value="ASC">ASC<option />
      <option value="DESC">DESC<option />
      </select>
     <input type="text" name="orderby_last_field_seqno" size="4" VALUE="<%=(view.getorderby_last_field_seq()!=null ? view.getorderby_last_field_seq() : "")%>" <%=view.getorderby_last_field_seq_readonly() ? "readonly" : ""%> CLASS="<%=(view.getorderby_last_field_seq_readonly() ? "input_noborder" : "input")%>"/>
    </td>
  </tr>-->
</table>
<INPUT TYPE="HIDDEN" NAME="dataview_seqno"
	VALUE="<%=view.getdataview_seqno()%>" /> <INPUT TYPE="HIDDEN"
	NAME="prgAction" VALUE="<%=view.getPrgAction()%>" /> <INPUT
	TYPE="HIDDEN" NAME="prgStatus" VALUE="<%=view.getPrgStatus()%>" /> <INPUT
	TYPE="HIDDEN" NAME="flowAction" VALUE="<%=view.getFlowAction()%>" /></form>
</body>
</html>
